package com.park.service.impl.question;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.park.client.model.question.QuestionTypeModel;
import com.park.client.service.question.QuestionTypeService;
import com.park.dao.question.QuestionTypeMapper;
import com.park.service.impl.base.BaseServiceImpl;

@Service("questionTypeService")
public class QuestionTypeServiceImpl extends BaseServiceImpl<QuestionTypeModel> implements QuestionTypeService {
	
	@Autowired
	private QuestionTypeMapper questionTypeMapper;

	@Override
	public boolean insert(QuestionTypeModel record) {
		return questionTypeMapper.insert(record)==1 ;
	}
	@Override
	public boolean deleteByPrimaryKey(Long id) {
		return questionTypeMapper.deleteByPrimaryKey(id)==1;
	}
	@Override
	public boolean insertSelective(QuestionTypeModel record) {
		return questionTypeMapper.insertSelective(record)==1;
	}
	@Override
	public QuestionTypeModel selectByPrimaryKey(Long id) {
		return questionTypeMapper.selectByPrimaryKey(id);
	}
	@Override
	public boolean updateByPrimaryKeySelective(QuestionTypeModel record) {
		return questionTypeMapper.updateByPrimaryKeySelective(record)==1;
	}
	@Override
	public boolean updateByPrimaryKey(QuestionTypeModel record) {
		return questionTypeMapper.updateByPrimaryKey(record)==1;
	}
	@Override
	public List<QuestionTypeModel> selectAll() {
		return questionTypeMapper.selectAll();
	}
	@Override
	public List<QuestionTypeModel> selectPagination(QuestionTypeModel t) {
		return questionTypeMapper.selectPagination(t);
	}
	@Override
	public Integer selectTotal(QuestionTypeModel t) {
		return questionTypeMapper.selectTotal(t);
	}

}
